package sapling.logic.algorithm.pcb.queue;

import sapling.logic.object.pcb.ProcessControlBlock;

/**
 * First Come First Service
 */
public class FCFSQueue extends Queue {
	@Override
	public boolean enqueue(ProcessControlBlock proc) {
		return this.add(proc);
	}

	@Override
	public ProcessControlBlock dequeue() {
		return this.remove(0);
	}

	@Override
	public ProcessControlBlock peek() {
		return this.get(0);
	}
}
